﻿using Serilog;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hairou_robot
{
    public static class LogHelper
    {

        private static bool _initialized = false;

        public static void Init()
        {
            if (_initialized) return;
            Log.Logger = new LoggerConfiguration()
                .WriteTo.File(@"C:\Log_ess\log-.txt", rollingInterval: RollingInterval.Day)
                .CreateLogger();
            _initialized = true;
        }
    }
}
